import request from '@/utils/request.js';
async function getMemberInfo() {
	// 获取会员信息
	let res = await request.post('/member/getIntegral')
	if (res.code === 0) {
		uni.setStorageSync('memberNum', res.data) 
		return res.data;
	} else {
		return uni.$showMsg(res.msg)
	}

}
async function getAddressList() {
	// 获取会员信息
	let res = await request.get('/memberAddress/getList')
	if (res.code === 0) {
		return res.data;
	} else {
		return uni.$showMsg(res.msg)
	}
}
export {
	getMemberInfo,
	getAddressList
};